import { findAllPoint } from '@/apis/towerPointApi'
import { defineStore } from 'pinia'
import { ref } from 'vue'

const points = ref<TowerPointModel[]>([])
export default defineStore('towerPoint', () => {
  async function all(args: Record<string, any>) {
    const { data } = await findAllPoint(args)
    points.value = data
  }

  return { points, all }
})
